using System.ComponentModel.DataAnnotations;

namespace bookmeetingroom.ViewModel {
    public class ResetPasswordViewModel {

        [Required (ErrorMessage = "必填")]
        [EmailAddress]

        public string Email { get; set; }

        [Required (ErrorMessage = "必填")]
        [StringLength (100, ErrorMessage = "{0}至少{2}位.", MinimumLength = 6)]
        [DataType (DataType.Password)]

        public string Password { get; set; }

        [DataType (DataType.Password)]

        [Compare ("Password", ErrorMessage = "两次输入的密码不匹配")]
        public string ConfirmPassword { get; set; }

        [Required (ErrorMessage = "必填")]

        public string SecurityCode { get; set; }
    }
}